import  requests
# 登录接口
class IhrmLoginApi(object):
    @classmethod
    def login(cls, json_data):
        url = "http://ihrm2-test.itheima.net/api/sys/login"
        resp = requests.post(url=url, json=json_data)
        return resp


if __name__ == '__main__':
    resp = IhrmLoginApi.login({"mobile": "13800000002","password": "123456"})
    print(resp.json())
